package com.acme.bankapp.exceptions;

import com.acme.bankapp.domain.bank.Client;

/**
 * Created by Student on 17.11.2014.
 */
public class ClientExistsException extends BankException {
    Client client;

    public ClientExistsException(Client client) {
        super(client + " already exists");
        this.client = client;
    }

    public Client getClient() {
        return client;
    }
}
